﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using Core.Unity.Wpf;

namespace ViewModels {
    public class WebViewModel : INotifyPropertyChanged {
        public WebViewModel(ContainerWpf container) {
            container.Register<WebViewModel>(this);
        }

        string _Url = "http://www.ceic.ac.cn/onmap/id:5";

        public string Url {
            get {
                return _Url;
            }
            set {
                if (_Url != value) {
                    _Url = value;
                    if (this.PropertyChanged != null) {
                        this.PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Url"));
                    }
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
